home *** CD-ROM | disk | FTP | other *** search
- Path: news.orl.mmc.com!woodcock
- From: woodcock@escmail.orl.mmc.com (Steve Woodcock)
- Newsgroups: comp.lang.c
- Subject: Data Name to Pointer Question
- Date: 6 Mar 1996 17:27:07 GMT
- Organization: Martin Marietta
- Message-ID: <4hkhtb$epm@theopolis.orl.mmc.com>
- NNTP-Posting-Host: 141.240.50.90
- X-Newsreader: TIN [version 1.2 PL2]
-
- Hello All:
-
-
- Apologies in advance is this is so mind-bogglingly simple that I'm
- somehow missing it.
-
- I have a data file containg the name of a structure called
- "process one", as such
-
- #
- # comments
- #
- process_one
- #
- # comments
-
- Over in the program itself, "process one" is a data structure filled
- with information.
-
- Is there a way for me to convert the string "process one" that I read
- in from the data file to a pointer pointing to the actual structure
- "process one"? Essentially, I want to turn the contents of this string
- variable into the *name* of the variable I want to access.
-
- Steve
-
- +=============================================================================+
- | _ |
- | Steven Woodcock _____C .._. |
- | Senior Software Engineer, Gameware ____/ \___/ |
- | Lockheed Martin Information Systems Group <____/\_---\_\ "Ferretman" |
- | Phone: 719-597-5413 |
- | E-mail: woodcock@escmail.orl.mmc.com (Work), swoodcoc@cris.com (Home) |
- | Web: http://www.cris.com/~swoodcoc/ai.html (Games AI page) |
- | http://www.cris.com/~swoodcoc/steve.html (Boring Steve Stuff) |
- | Disclaimer: My opinions in NO way reflect the opinions of |
- | the Lockheed Martin Information Systems Group |
- +=============================================================================+
-